<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CreateStaticGeometry</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CreateStaticGeometry()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Result = <font color="#006666"><b>CreateStaticGeometry</b></font>(#StaticGeometry, Width, Height, Length, EnableShadows)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Create an empty static geometry. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#StaticGeometry</i></td>
<td width="90%"> 
 
A number to identify the new static geometry will be identified. <a href="../reference/purebasic_objects.html">#PB_Any</a> 
can be used to auto-generate this number. 

 

</td></tr>
<tr><td><i>Width</i></td>
<td> 
 
Width (in world unit) of the static geometry. 

 

</td></tr>
<tr><td><i>Height</i></td>
<td> 
 
Height (in world unit) of the static geometry. 

 

</td></tr>
<tr><td><i>Length</i></td>
<td> 
 
Length (in world unit) of the static geometry. 

 

</td></tr>
<tr><td><i>EnableShadows</i></td>
<td> 
 
Enables or disables dynamic shadows casting on the static geometry. Set to <font color="#924B72">#True</font> to enable it, <font color="#924B72">#False</font> otherwise. 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



Returns nonzero if the static geometry has been successfully created and zero if not. If <font color="#924B72">#PB_Any</font> 
was used for the #StaticGeometry parameter then the generated number is returned on success. 

 

</blockquote><p><b>Remarks</b></p><blockquote>



If previously another static geometry was loaded with the same #StaticGeometry number, then this 
older static geometry will be automatically freed when creating the new one. 

 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="freestaticgeometry.html">FreeStaticGeometry()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=buildstaticgeometry.html>BuildStaticGeometry()</a> - <a href=index.html>StaticGeometry Index</a> - <a href=freestaticgeometry.html>FreeStaticGeometry()</a> -&gt;



</body></html>